import Vue from 'vue'
import Vuex from 'vuex'
// 导入拆分的getters模块
import getters from './getters'
// 导入拆分的Vuex store模块
import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'

Vue.use(Vuex)
// 对Vuex 进行模块化
const store = new Vuex.Store({
  // 挂载拆分的vuex模块
  modules: {
    app,
    settings,
    user
  },
  // state = {}

  // mutations = {

  // }

  // actions = {

  // },
  // getters:getters
  getters
})

export default store
